{include file="static/appm/tpl_header.html" /}
<body xmlns="http://www.w3.org/1999/html">
<div class="weui-tab container">
    <div class="weui-flex bg-faded aurora-edit-head">
        <div class="weui-flex__item">
            <div class="placeholder">
                <a href="{:urlBuild('!.log')}">
                    <i class="fa fa-arrow-circle-left"></i>
                    日志系统
                </a>
                / 编辑</div>
        </div>
    </div>
    <div class="js__form">
        <div class="weui-cells weui-cells_form">
            <div class="weui-cell">
                <div class="weui-cell__hd"><label for="name_ipter" class="weui-label">名称 *</label></div>
                <div class="weui-cell__bd">
                    {$f_pk_grid|default=""}
                    <input class="weui-input" type="text" id="name_ipter" value="{$data.name|default=''}" emptytips="请设置名称" name="name" required>
                </div>
            </div>
            <div class="weui-cell">
                <div class="weui-cell__hd"><label for="code_ipter" class="weui-label">代码</label></div>
                <div class="weui-cell__bd">
                    <input class="weui-input" type="text" id="code_ipter" value="{$data.code|default=''}" emptytips="请设置代码" name="code">
                </div>
            </div>
            <div class="weui-cell">
                <div class="weui-cell__hd"><label for="type_ipter" class="weui-label">类型</label></div>
                <div class="weui-cell__bd">
                    <select class="weui-select" name="type" id="type_ipter">
                        <option value=""></option>
                        <option value="D1">按天分组</option>
                    </select>
                </div>
            </div>
            <div class="weui-cell">
                <div class="weui-cell__hd"><label for="stadate_ipter" class="weui-label">日志起始日期</label></div>
                <div class="weui-cell__bd">
                    <input class="weui-input" type="date" id="stadate_ipter" value="{$data.sta_date|default=''}" emptytips="请设置代码" name="sta_date">
                </div>
            </div>
            <div class="weui-cell">
                <div class="weui-cell__hd"><label for="enddate_ipter" class="weui-label">日志结束日期</label></div>
                <div class="weui-cell__bd">
                    <input class="weui-input" type="date" id="enddate_ipter" value="{$data.end_date|default=''}" name="end_date">
                </div>
            </div>
            <div class="weui-cell weui-cell_switch">
                <div class="weui-cell__bd">日志已经结束</div>
                <div class="weui-cell__ft">
                    <label for="endmk_ipter" class="weui-switch-cp">
                        <input id="endmk_ipter" name="end_mk" class="weui-switch-cp__input" value="Y" type="checkbox">
                        <div class="weui-switch-cp__box"></div>
                    </label>
                </div>
            </div>
        </div>
        <div class="weui-cells__title">简介 *</div>
        <div class="weui-cells weui-cells_form">
            <div class="weui-cell">
                <div class="weui-cell__bd">
                    <textarea class="weui-textarea" placeholder="请输入简介文本" rows="2" name="intro" emptytips="描述不可为空！" required>{$data.intro|default=""}</textarea>
                </div>
            </div>
        </div>
        <div class="weui-cells__title">日志详情</div>
        <div class="weui-cells weui-cells_form">
            <div class="weui-cell">
                <div class="weui-cell__bd">
                    <textarea class="weui-textarea" placeholder="请输入纪事内容" name="detail" rows="5" emptytips="内容不可为空！">{$data.detail|default=""}</textarea>
                </div>
            </div>
        </div>
    </div>
    <div class="weui-flex aurora-border"></div>
    <div class="weui-btn-area">
        <a class="weui-btn weui-btn_primary" href="javascript:" id="submit_lnk">确定</a>
    </div>
</div>
</body>
</html>